﻿namespace Jund.OpcHelper.Opc.Cpx
{
    using System;
    using System.Runtime.Serialization;

    [Serializable]
    public class InvalidSchemaException : ApplicationException
    {
        private const string Default = "The schema cannot be used because it contains errors or inconsitencies.";

        public InvalidSchemaException() : base("The schema cannot be used because it contains errors or inconsitencies.")
        {
        }

        public InvalidSchemaException(Exception e) : base("The schema cannot be used because it contains errors or inconsitencies.", e)
        {
        }

        public InvalidSchemaException(string message) : base("The schema cannot be used because it contains errors or inconsitencies.\r\n" + message)
        {
        }

        protected InvalidSchemaException(SerializationInfo info, StreamingContext context) : base(info, context)
        {
        }

        public InvalidSchemaException(string message, Exception innerException) : base("The schema cannot be used because it contains errors or inconsitencies.\r\n" + message, innerException)
        {
        }
    }
}

